package com.affectu.study;

import java.util.List;

import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.Name;

import com.affectu.dao.DAOBase;

/**
 * Oct 15, 2008
 * 
 * @author daniel nathan
 */
@Name("studyIndexAction")
public class Index extends DAOBase {

	@SuppressWarnings("unchecked")
	@Factory("studyIndexAction_allPaper")
	public List<Paper> getAllPaper() {
		return em.createQuery("from Paper n order by n.createDate desc").list();
	}
}
